    <?php echo form_tag_for($listDocumentTypesForm,$listDocumentTypesForm->getUrl())?>
    <?php echo $listDocumentTypesForm->renderGlobalErrors()?>
    <?php echo $listDocumentTypesForm['iden']?>
    <?php echo $listDocumentTypesForm['_csrf_token']?>
    <table>
      <tbody>
        <tr>
          <th class="field">
            <?php echo $listDocumentTypesForm['type_tag']->renderLabel()?>
          </th>
          <td class="field">
            <?php echo $listDocumentTypesForm['type_tag']->renderError()?>
            <?php echo $listDocumentTypesForm['type_tag']?>
          </td>
          <th class="field">
            <?php echo $listDocumentTypesForm['typeid']->renderLabel()?>
          </th>
          <td class="field">
            <?php echo $listDocumentTypesForm['typeid']->renderError()?>
            <?php echo $listDocumentTypesForm['typeid']?>
          </td>
          <th class="field">
            <?php echo $listDocumentTypesForm['type_name']->renderLabel()?>
          </th>
          <td class="field">
            <?php echo $listDocumentTypesForm['type_name']->renderError()?>
            <?php echo $listDocumentTypesForm['type_name']?>
          </td>
          <th class="field">
            <?php echo $listDocumentTypesForm['last_id']->renderLabel()?>
          </th>
          <td class="field">
            <?php echo $listDocumentTypesForm['last_id']->renderError()?>
            <?php echo $listDocumentTypesForm['last_id']?>
          </td>
        </tr>
      </tbody>
      <tfoot>
        <tr>
          <td class="form_buttons" colspan="6">
            <input type="submit" value="Save"/>
            <?php if(! $listDocumentTypesForm->isNew()):?>
              | 
              <?php 
                echo 
                  button_to(
                    'Reset',
                    $listDocumentTypesForm->getEditUrl()
                  );
              ?>
              | 
              <?php 
                echo 
                  button_to(
                    'Delete',
                    $listDocumentTypesForm->getDeleteUrl(),
                    array(
                      'confirm'=>'Delete document type '.$listDocumentTypesForm->getObject()->getTypeName().'?',
                    )
                  );
              ?>
            <?php endif;?>
              | 
              <?php 
                echo 
                  button_to(
                    'Cancel',
                    'document_types/index'
                  );
              ?>
          </td>
        </tr>
      </tfoot>
    </table>
  </form>